<?php

// +----------------------------------------------------------------------
// | H1CMS © OpenSource CMS
// +----------------------------------------------------------------------
// | Copyright (c) 2014-2016 http://www.h1cms.com All rights reserved.
// | Copyright (c) 2014-2016 嘉兴领格信息技术有限公司，并保留所有权利。
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Allen <allen@lg4.cn>
// +----------------------------------------------------------------------

namespace Lg\Support;

/**
 * Description of Capsule
 *
 * @author Allen <allen@lg4.cn>
 */
class Capsule extends \Illuminate\Database\Capsule\Manager {

    public static function select($query, $bindings = [], $useReadPdo = true) {
        return static::connection()->select($query, $bindings, $useReadPdo);
    }

    public static function update($query, $bindings = []) {
        return static::connection()->update($query, $bindings);
    }

    public static function insert($query, $bindings = []) {
        return static::connection()->insert($query, $bindings);
    }

    public static function delete($query, $bindings = []) {
        return static::connection()->insert($query, $bindings);
    }

}
